/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package action.director.gesDepDis;

import DBMS.DataBaseManager;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import clases.AsociarDepDisForm;

            
/**
 *
 * @author miguel
 */
public class AccionPreAsociarD extends Action{
        
    @Override
    public ActionForward execute(ActionMapping mapping, ActionForm form, 
               HttpServletRequest request, HttpServletResponse response)
               throws Exception {
        DataBaseManager dbms = DataBaseManager.getInstance();
        ArrayList<String> Usuarios = dbms.CargarDeportistas();
        ArrayList<String> Disciplinas = dbms.CargarDisciplinasExternas();
        
        request.getSession().setAttribute("Usuarios",Usuarios);
        request.getSession().setAttribute("DisciplinasE",Disciplinas);
        return mapping.findForward("avanzar");
        
    }
}
        